import axiosServer from "@/utils/request";


//轮播图-查询所有
export const getBannerList = () => {
    return axiosServer({
        method: "get",
        url: "/rotation/loadAll",
    });
};
//删除
export const DeletBanner = (id) => {
    return axiosServer({
        method: "delete",
        url: "/rotation/delete/" + id,
    });
};

//新增
export const addBanner = (formData) => {
    return axiosServer({
        method: "post",
        url: "/rotation/add",
        data: formData
    });
};
